package com.windy.dailynews.request;

import org.json.JSONObject;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * Created by dingfeng on 2016/11/21.
 */
public interface ApiService {

    @GET("news/latest")
    Call<JSONObject> getLatestNews();

    @GET("news/before/{date}")
    Call<JSONObject> getBeforeNews(@Path("date") String date);

    @GET("news/{id}")
    Call<JSONObject> getNewsContent(@Path("id") int id);

    @GET("themes")
    Call<JSONObject> getMenuList();

    @GET("theme/{id}")
    Call<JSONObject> getThemeNewsContent(@Path("id") int id);

}
